package com.slipper.ai.flow;

import com.slipper.ai.flow.vo.*;
import org.springframework.beans.factory.InitializingBean;

import java.util.List;

public interface INodeDealer extends InitializingBean {
    String getType();

    List<LineVO> doDeal(FlowVO flow, NodeVO node, NodeInstVO nodeInst);

    @Override
    default void afterPropertiesSet() {
        NodeDealerFactory.register(getType(), this);
    }
}
